package service;

import Model.User;

import java.sql.SQLException;
import java.util.ArrayList;

public interface UserService {

    User getUserByID(int id) throws SQLException;

    public User getUserByName(String username) throws SQLException;

    public ArrayList<User> getAllUser() throws SQLException;

    public boolean doUpdate(User user);

    public boolean doDelete(int id);

    // 添加用户
    public boolean addUser(User user);
}
